


exports.success = (data = undefined, message = "success") => {
    return {
        type: "success",
        time: new Date(),
        message: message,
        data: data
    };
}


exports.failed = (data = undefined, message = "failed") => {
    return {
        type: "failed",
        time: new Date(),
        message: message,
        data: data
    };
}


